<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
    $(function() {
        mallEcardRebateModule.init();
    });
    var mallEcardRebateModule = (function(){

        /*初始化时间查询*/
        var initDate = function(){
            $("input[name='rebatetime_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});});
            $("input[name='rebatetime_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});});
            $("input[name='returntime_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});});
            $("input[name='returntime_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});});
        }

        var module = {
            init :function(){
                initDate();
            },
            //详情
            detail : function(id){
                window.location.href = 'mallEcardRebateController.do?auditview&id='+id;
            },
        }
        return module;
    })();
</script>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="mallEcardRebateList" title="E卡返点" actionUrl="mallEcardRebateController.do?returnreviewdatagrid"
              idField="id" fit="true" queryMode="group">
   <t:dgCol title="编号" field="id" hidden="true"></t:dgCol>
   <t:dgCol title="返点类型" replace="点数_0,直返_1" field="rebatetype"  width="120" query="true"></t:dgCol>
   <t:dgCol title="返点点数" field="rebatenum"   width="120"></t:dgCol>
   <t:dgCol title="返点金额" field="rebatemoney"   width="120"></t:dgCol>
   <t:dgCol title="返点时间" field="rebatetime" formatter="yyyy-MM-dd hh:mm:ss"  width="120" query="true" queryMode="group"></t:dgCol>
   <t:dgCol title="返点操作人" field="rebateUserName"  query="true"  width="120"></t:dgCol>
   <t:dgCol title="退回金额" field="returnmoney"   width="120"></t:dgCol>
   <t:dgCol title="退回时间" field="returntime" formatter="yyyy-MM-dd hh:mm:ss" query="true" queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="退回操作人" field="returnUserName"   width="120"></t:dgCol>
   <t:dgCol title="状态" field="state"   width="120"  replace="返点_0,部分退回_1,全部退回_2"></t:dgCol>
   <t:dgCol title="退回复核人" field="returnAuditUserName"   width="120"></t:dgCol>
   <t:dgCol title="退回复核状态" field="returnauditstate"   width="120" query="true" replace="未复核_0,复核通过_1,复核不通过_2"></t:dgCol>
   <t:dgCol title="退回复核时间" field="returnreviewtime" formatter="yyyy-MM-dd hh:mm:ss"  width="120"></t:dgCol>
   <t:dgCol title="退回复核未通过原因" field="returnrejectreason"   width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt funname="mallEcardRebateModule.detail(id)" title="查看"></t:dgFunOpt>
  </t:datagrid>
  </div>
 </div>